import java.util.Vector;


public class Factura extends Vector <Producto>{
	
	public void meterProducto(Producto Producto){
		this.add(Producto);
	}
	public float TotalFactura(){
		float total = 0;
		for (int x = 0; x< this.size(); x++){
			total = total + this.get(x).PrecioTotal();
		}
		return total;
	}
	public float AplicarIVA(float IVA){
		float TotalConIVA = TotalFactura();
		TotalConIVA = TotalConIVA *(1+ IVA);
		return TotalConIVA;
	}

}
